package com.qf.config;

import com.qianfeng.smsplatform.common.constants.RabbitMqConsants;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/*
 * @Data: 2021/7/14 20:45
 * */
@Configuration
public class RabbitMqConfig {

//todo
//    声明  队列
    @Bean
    public Queue rabbit(){
        return new Queue(RabbitMqConsants.TOPIC_PRE_SEND,true);
    }

}
